import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smackx.packet.DiscoverItems.Item;


public class MyIQPacket extends IQ {

	public static String FEATURE_NAMESPACE = "org.epic.mock";
	
	private String mCapability;
	private String mValue;
	
	MyIQPacket(String capability, String value){
		mCapability = capability;
		mValue = value;
	}
	
	@Override
	public String getChildElementXML() {
		StringBuilder buf = new StringBuilder();
        buf.append("<query xmlns=\""+ FEATURE_NAMESPACE +"\">");
        buf.append("<cap/>");
        //buf.append("<capability name =\"" + mCapability + "\" " + "value = \"" + mValue + "\" />");
        buf.append("</query>");
        return buf.toString();
	}
	
	public String getCapability(){
		return mCapability;
	}
	
	public String getValue(){
		return mValue;
	}

}
